import 'package:deer/login/register_page.dart';
import 'package:deer/login/reset_password_page.dart';
import 'package:deer/login/sms_login.dart';
import 'package:deer/routers/router_init.dart';
import 'package:fluro/fluro.dart';

import 'login_page.dart';

class LoginRouter implements IRouterProvider {

  static String loginPage = '/login';
  static String smsLoginPage = '/login/SMSLogin';
  static String resetPasswordPage = '/login/ResetPassword';
  static String registerPage = '/login/Register';

  @override
  void initRouter(Router router) {
    router.define(loginPage, handler: Handler(handlerFunc: (_, params) => LoginPage()));
    router.define(smsLoginPage, handler: Handler(handlerFunc: (_, params) => SMSLogin()));
    router.define(resetPasswordPage, handler: Handler(handlerFunc: (_, params) => ResetPassword()));
    router.define(registerPage, handler: Handler(handlerFunc: (_, params) => Register()));
  }
}